import {http} from '../utils/http'
export const getHomeBannerAPI=(distributionSite=1)=>{
    return http({
        method:'GET',
        url:'/employee/advertise/list',
        data:{
            distributionSite
        }
    })
}
//获取分类列表
export const getCategoryListAPI=()=>{
    return http({
        method:'GET',
        url:'/category/list'
    })
}
//获取商品展示列表
export const getGoodsListAPI=(params)=>{
    return http({
        method:'GET',
        url:'/product',
        data:params
    })
}
//根据id获取商品详情
export const getGoodsDetailAPI=(id)=>{
    return http({
        method:'GET',
        url:'/product/'+id
    })
}

//查询商品
export const searchGoodsAPI=(params)=>{
    return http({
        method:'GET',
        url:'/product/search',
        data:params
    })
}
